package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RefundOrderInfoMapper;
import com.ruoyi.system.domain.RefundOrderInfo;
import com.ruoyi.system.service.IRefundOrderInfoService;

/**
 * 退货明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-17
 */
@Service
public class RefundOrderInfoServiceImpl implements IRefundOrderInfoService 
{
    @Autowired
    private RefundOrderInfoMapper refundOrderInfoMapper;

    /**
     * 查询退货明细
     * 
     * @param id 退货明细主键
     * @return 退货明细
     */
    @Override
    public RefundOrderInfo selectRefundOrderInfoById(Long id)
    {
        return refundOrderInfoMapper.selectRefundOrderInfoById(id);
    }

    /**
     * 查询退货明细列表
     * 
     * @param refundOrderInfo 退货明细
     * @return 退货明细
     */
    @Override
    public List<RefundOrderInfo> selectRefundOrderInfoList(RefundOrderInfo refundOrderInfo)
    {
        return refundOrderInfoMapper.selectRefundOrderInfoList(refundOrderInfo);
    }

    /**
     * 新增退货明细
     * 
     * @param refundOrderInfo 退货明细
     * @return 结果
     */
    @Override
    public int insertRefundOrderInfo(RefundOrderInfo refundOrderInfo)
    {
        return refundOrderInfoMapper.insertRefundOrderInfo(refundOrderInfo);
    }

    /**
     * 修改退货明细
     * 
     * @param refundOrderInfo 退货明细
     * @return 结果
     */
    @Override
    public int updateRefundOrderInfo(RefundOrderInfo refundOrderInfo)
    {
        return refundOrderInfoMapper.updateRefundOrderInfo(refundOrderInfo);
    }

    /**
     * 批量删除退货明细
     * 
     * @param ids 需要删除的退货明细主键
     * @return 结果
     */
    @Override
    public int deleteRefundOrderInfoByIds(Long[] ids)
    {
        return refundOrderInfoMapper.deleteRefundOrderInfoByIds(ids);
    }

    /**
     * 删除退货明细信息
     * 
     * @param id 退货明细主键
     * @return 结果
     */
    @Override
    public int deleteRefundOrderInfoById(Long id)
    {
        return refundOrderInfoMapper.deleteRefundOrderInfoById(id);
    }
}
